export function updateStorage(key, data) {
    if (typeof data === "object") {
        data = JSON.stringify(data);
    }
    localStorage.setItem(key, data);
}
